package com.zzl.study.auth.service.impl;

import com.zzl.study.auth.dao.SysUserMapper;
import com.zzl.study.auth.domain.SysUserEntity;
import com.zzl.study.auth.service.SysUserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author: zhangzl
 * @date: 2023/12/11 19:12
 * @version: 1.0
 * @description: 系统用户Service实现类
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    @Resource
    private SysUserMapper sysUserMapper;

    @Override
    public SysUserEntity selectByUsername(String username) {
        return this.sysUserMapper.selectSysUserByUsername(username);
    }

    @Override
    public SysUserEntity selectByTel(String tel) {
        return this.sysUserMapper.selectSysUserByTel(tel);
    }

}
